﻿using Bmz.Studio.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bmz.Studio.Services
{
    public class NavigationService : INavigationService
    {
        IRepository<Navigation> _repository;

        public NavigationService(IRepository<Navigation> repository)
        {
            _repository = repository;
        }

        public IList<Navigation> GetAllNavigation()
        {
            var query = from p in _repository.Table
                        where p.IsDelete == false
                        orderby p.Order
                        select p;
            return query.ToList();
        }

    }
}
